package com.xhs.hawaii.common;

/**
 * 业务异常
 * <p>
 * 异常信息可供前端弹窗提示给用户
 *
 * @author chenqunhui
 */
public class BusinessException extends RuntimeException {
    private static final long serialVersionUID = 6118874524492682160L;

    private String alertMsg;

    public BusinessException(String alertMsg) {
        super(alertMsg);
        this.alertMsg = alertMsg;
    }

    public BusinessException(String alertMsg, String errMsg) {
        super(errMsg);
        this.alertMsg = alertMsg;
    }

    public BusinessException(String alertMsg, String errMsg, Throwable e) {
        super(errMsg, e);
        this.alertMsg = alertMsg;
    }

    public BusinessException(String alertMsg, Throwable e) {
        super(alertMsg, e);
        this.alertMsg = alertMsg;
    }

    public BusinessException(Throwable e) {
        super(e);
    }

    public String getAlertMsg() {
        return alertMsg;
    }

}
